const app = getApp();
const Controller = require('../controllers/controllers.js').controller;
Page({
  data: {
    userInfo:'',
    page:1,
    pageSize:10,
    isEnd:false,
    lists:[],
    isloading:false,
    type:1,
  },
  onLoad() {
    this.contentlist()
  },
  onShow(){
  },
  goPge(e){
    wx.navigateTo({
      url: "/pages/Me/strategyDetails"
    })
    app.globalData.quesitem=e.currentTarget.dataset.item
  },
  contentlist(){
    Controller.questionList().then(res=>{
      if(res.data.baseData && res.data.baseData.length>0){
        this.setData({
          lists:res.data.baseData,
        })
      }
      this.setData({
        isloading:false
      })
    })
  },

  onPageScroll: function (e) { // 获取滚动条当前位置
    
  },
  onShareAppMessage: function (e) {
    
  },
  onShareTimeline: function(res){
    
  },

})